package csu.web.mypetstore.service;

import com.baomidou.mybatisplus.extension.service.IService;
import csu.web.mypetstore.pojo.Account;
import csu.web.mypetstore.utils.Result;
import org.springframework.web.multipart.MultipartFile;


public interface AccountService extends IService<Account> {


    Account getAccount(String username);
    void insertAccount(Integer userId,String password,String email, String firstName, String lastName, String status, String address1, String address2, String city, String state, Integer zip, String country, String phone);

    void insertSignon(String username,String passowrd,String image);
    void updateSignon(Integer userId,String username,String password,String image);
    void updateAccount(String email,String firstname,String lastname,String addr1,String addr2,String city,String state,String zip,String country,String phone,String username);
    void deleteAccount(String username);
    void updateAccount(Account account);
    int getUserId(String username);
    //判断用户名是否存在，密码是否正确
    Result login(String username, String password);

    //注册新用户
    Result register(Account account, MultipartFile file);
    //用户名是否存在
    boolean isUsernameExist(String username);

}
